//
//  HZBundle.m
//  Pods
//
//  Created by mason on 2017/3/17.
//
//

#import "HZBundle.h"

@implementation HZBundle


+ (NSString *)currentBundleName {
    return @"Module-Common";
}

+ (NSBundle *)currentBundle {
    return [self bundleWithName:[self currentBundleName]];
}

+ (NSBundle *)bundleWithName:(NSString *)name {
    NSString *bundlePath = [[NSBundle mainBundle] pathForResource:name ofType:@"bundle"];
    NSBundle *bundle = [NSBundle bundleWithPath:bundlePath];
    return bundle ? bundle : [NSBundle mainBundle];
}

@end
    
